package cn.z2huo.knowledge.concurrency.thinkinginjava.section_21_3.syncCodeBlock;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

class SyncObject {

    public static void main(String[] args) {
        DualSync dualSync = new DualSync();
        ExecutorService executorService = Executors.newCachedThreadPool();
        executorService.execute(dualSync);
        dualSync.g();
    }

}
